<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<body>
<div th:fragment="topheader(act_idx)">

    <div id="head-nav" class="navbar navbar-default navbar-fixed-top" style="height:60px;background:#2494f2;">
        <div class="header-img"><img src="/webjars/images/login/logo.png" alt="" width="50px;"/></div>
        <div class="header-title">牧中智慧畜牧大数据云平台</div>
        <div th:class="${act_idx}==1? 'header-text active-header' : 'header-text'">
                <a href="/djt/dashboard">动检通</a>
        </div>
        <!--<div class="header-text"><a href="" >智慧地图</a></div>
        <div class="header-text"><a href="">农污通</a></div>-->
        <div th:class="${act_idx}==2? 'header-text active-header' : 'header-text'">
                <a href="/management/factory/show">平台管理</a>
        </div>
        <div class="header-text-img"><i class="fa fa-sign-out" aria-hidden="true"></i> <a href="/logout">退出</a></div>
        <div class="header-text-img"><i class="fa fa-question-circle" aria-hidden="true"></i> <a
                href="http://g.eqxiu.com/s/iyS3Gr5A" target="_blank">帮助</a></div>
        <div class="header-text-img"><i class="fa fa-mobile fa-lg" aria-hidden="true"></i> <a href="">下载“动检通APP”</a>
        </div>
        <div class="header-text-img"><i class="fa fa-user" aria-hidden="true"></i> <a href="" th:text="${username}">134****6037</a>
        </div>
    </div>

</div>
</body>
</html>